package com.dys.designpattern.simplefactory.distributeprizestosimplefactories.service.impl;

import com.dys.designpattern.simplefactory.distributeprizestosimplefactories.entity.AwardInfo;
import com.dys.designpattern.simplefactory.distributeprizestosimplefactories.service.IFreeGoods;
import com.dys.designpattern.simplefactory.distributeprizestosimplefactories.vo.ResponseResult;

/**
 * @Author: 疾风
 * @ClassName: DiscountFreeGoods
 * @Description: 模拟打折券服务
 * @CreateDate: 2024/05/13
 * @Version: v1.0.0
 */
public class DiscountFreeGoods implements IFreeGoods {
    @Override
    public ResponseResult sendFreeGoods(AwardInfo awardInfo) {
        System.out.println("向用户发放一张打折券: " + awardInfo.getUid() + "," + awardInfo.getAwardNumber());
        return new ResponseResult("200", "打折券发放成功!");
    }
}
